import { axios } from '@/utils/request'

export function cashList(params) {
  return axios({
    url: '/store-cash/cash-list',
    method: 'get',
    params,
  })
}

export function exportCashList(params) {
  return axios({
    url: '/store-cash/cash-list',
    method: 'get',
    params,
    responseType: 'blob',
  })
}

export function storeCashCreate(data) {
  return axios({
    url: '/store-cash/store-cash-create',
    method: 'post',
    data,
  })
}

export function storeMoney(params) {
  return axios({
    url: '/store-cash/store-money',
    method: 'get',
    params,
  })
}

export function cashApply(data) {
  return axios({
    url: '/store-cash/cash-apply',
    method: 'post',
    data,
  })
}

export function cashConfirm(data) {
  return axios({
    url: '/store-cash/cash-confirm',
    method: 'post',
    data,
  })
}

export function cashDel(data) {
  return axios({
    url: '/store-cash/store-cash-del',
    method: 'post',
    data,
  })
}

export function storeAccountLogList(params) {
  return axios({
    url: '/store-cash/store-account-log-list',
    method: 'get',
    params,
  })
}

export function exportStoreAccountLogList(params) {
  return axios({
    url: '/store-cash/store-account-log-list',
    method: 'get',
    params,
    responseType: 'blob',
  })
}